columnviewcolumn: Add a helper
authorMatthias Clasen <mclasen@redhat.com>
Sat, 21 Dec 2019 04:01:55 +0000 (23:01 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 3 Jun 2020 16:49:40 +0000 (12:49 -0400)
We need to check whether clicks are in the headers
of columns, so let the column view get at the the
header widget.

gtk/gtkcolumnviewcolumn.c
gtk/gtkcolumnviewcolumnprivate.h

index 89157b52361cb74de5fe0b2185eab4d6e57255ba..6a092096484b06c67edba0b0b9f7477e6715cb7b 100644 (file)
@@ -941,3 +941,9 @@ gtk_column_view_column_get_fixed_width (GtkColumnViewColumn *self)
 
   return self->fixed_width;
 }
+
+GtkWidget *
+gtk_column_view_column_get_header (GtkColumnViewColumn *self)
+{
+  return self->header;
+}
index fe46663e63af69f4fd7388901a78da4e810d3f4c..925343f998c2eed29d4067f359e0d9223dbac1af 100644 (file)
@@ -33,6 +33,7 @@ void                    gtk_column_view_column_add_cell                 (GtkColu
 void                    gtk_column_view_column_remove_cell              (GtkColumnViewColumn    *self,
                                                                          GtkColumnViewCell      *cell);
 GtkColumnViewCell *     gtk_column_view_column_get_first_cell           (GtkColumnViewColumn    *self);
+GtkWidget *             gtk_column_view_column_get_header               (GtkColumnViewColumn    *self);
 
 void                    gtk_column_view_column_queue_resize             (GtkColumnViewColumn    *self);
 void                    gtk_column_view_column_measure                  (GtkColumnViewColumn    *self,